<html>
 <head>
 <meta content="text/html; charset=UTF-8" http-equiv="content-type">
 <link rel="stylesheet" type="text/css" href="/css/index.css" media="all">

 <title>测试-列表</title><script type="text/javascript">var yyuc_jspath = "/@system/";</script><script type="text/javascript" src="/@system/js/jquery.js"></script><script type="text/javascript" src="/@system/js/yyucadapter.js"></script>
 <style type="text/css">
 </style>
 </head>
 <body>
 <html>
 <head>
 <meta content="text/html; charset=UTF-8" http-equiv="content-type">
 <title>测试-详细信息</title><script type="text/javascript">var yyuc_jspath = "/@system/";</script><script type="text/javascript" src="/@system/js/jquery.js"></script><script type="text/javascript" src="/@system/js/yyucadapter.js"></script>
 <style type="text/css">
 </style>
 </head>
 <body>
 <span>
 <a href=" /news/index.html">首页(列表页)</a>|
 <a href="add.html">新增页面</a>|
 <a href="javascript:;" onclick="history.go(-1)">后退</a>
 </span>
 <br/>
 </body>
 </html>
 <table>
 <tr>
 <th><?php echo $news->lable('title'); ?></th>
 <th><?php echo $news->lable('author'); ?></th>
 <th><?php echo $news->lable('theme'); ?></th>
 <th><?php echo $news->lable('content'); ?></th>
 <th><?php echo $news->lable('posttime'); ?></th>
 <th>删除</th>
 <th>编辑</th>
 </tr>
 <?php $__i=0; foreach ((array)$new as $n) { $__i++; ?>
 <tr>
 <td><a href="show-<?php echo $n->id; ?>.html"><?php echo $n->title; ?></a></td>
 <td><?php echo $n->author; ?></td>
 <td><?php echo $n->field_text('theme'); ?></td>
 <td><?php echo $n->content; ?></td>
 <td><?php echo date('Y-m-d',$n->posttime); ?></td>
 <td>
 <a href="javascript: ;" onclick="if(confirm('确定要删除吗？')){ goto('delete-<?php echo $n->id; ?>.html');}">删除</a>
</td>
 <td><a href="edit-<?php echo $n->id; ?>.html">编辑</a></td>
 </tr>
 <?php } ?>
 <tr></tr>
 </table>
 <div style="height:60px;margin-left: 170px;font-size: 12px;">
  <span style="display: inline-block;float:left;padding:20px 0px;">共<?php echo $new_num; ?>条记录</span>
 <ul class='ulcss' style="float:left;padding-left:0px;"><?php if(isset($P)&&($P->totalpage>1||$P->showifone)){  if (!$P->isfirst){ ?>
<li class="pagination_first"><a href="<?php echo $P->firstlink; ?>"> << </a></li>
<?php }else{ ?>
<li class="pagination_first" disabled ><a href="javascript:;"> << </a></li>
<?php } ?>
<!-- <?php if (!$P->isfirst){ ?>
<li><a href="<?php echo $P->firstlink; ?>"><i class="fa fa-angle-double-left" title="第一页"></i></a></li>
<?php }else{ ?>
<li class="disabled"><a href="javascript:;"><i class="fa fa-angle-double-left" title="第一页"></i></a></li>
<?php } ?> --><?php if (!$P->isfirst){ ?>
<li class="pagination_prev"><a href="<?php echo $P->prevlink; ?>"> < </a></li>
<?php }else{ ?>
<li class="pagination_prev"><a href="javascript:;"> < </a></li>
<?php }  if($P->needleftgap){ ?><li class="page_gap separator"><?php echo i18n('pagination.default.gap'); ?></li><?php }  for($page_num=$P->startpage;$page_num<=$P->endpage;$page_num++){  $page_link = $P->firstlink;  if($page_num!=1){  $page_link = ($P->commonlink.Conf::$paging_separate.$page_num.Conf::$suffix).$P->querystr;  }  if($page_num==$P->pagenum){ ?><li class="current"><?php echo $page_num; ?></li><?php }else{ ?><li class="pagination_common"><a href="<?php echo $page_link; ?>"><?php echo $page_num; ?></a></li><?php }  }  if($P->needrightgap){ ?><li class="page_gap separator"><?php echo i18n('pagination.default.gap'); ?></li><?php }  if (!$P->islast){ ?>
<li class="pagination_next"><a href="<?php echo $P->nextlink; ?>"> > </a></li>
<?php }else{ ?>
<li class="pagination_next"><a href="javascript:;"> > </a></li>
<?php }  if (!$P->islast){ ?>
<li class="pagination_last"><a href="<?php echo $P->lastlink; ?>"> >> </a></li>
<?php }else{ ?>
<li class="pagination_last" disabled ><a href="javascript:;"> >> </a></li>
<?php }  } ?></ul>
 </div>

 </body>
 </html>